//
//  JSMBing.h
//  JSMBing
//
//  Created by 刘茂峰 on 15/12/7.
//  Copyright © 2015年 cn.sijian. All rights reserved.
//

#import <UIKit/UIKit.h>
@class JSMBing;
@protocol JSMBingDataSource <NSObject>

@required
-(NSArray*)JSMBingData:(JSMBing*)bing;
@optional

//Default is random.
-(UIColor*)JSMBingColor:(JSMBing*)bing andIndex:(NSInteger) index;


@end

@interface JSMBing : UIView
@property (nonatomic,weak) id<JSMBingDataSource> dataSource;
-(void)reloadData;
@end
